﻿using CaffeeBuzz_WinForm.Cafe;
using CaffeeBuzz_WinForm.Food;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CaffeeBuzz_WinForm.BuzzMenu
{
    public class BreakfastMenu:Menu
    {
        private List<Item> Items;
        
        public BreakfastMenu()
        {
            Items = new List<Item>();
            condiments = new List<Condiment>();
            condiments.Add(new Mocha());
            condiments.Add(new Milk());
            this.name = "Breakfast Menu";
            AddItem("Crab Cake Florentine Benedict",
                "House-made crab cakes griddled to order with spinach, poached eggs and creamy hollandaise. Served stil noon",
                50);
            AddItem("Quiche Lorraine",
                "Hickory smoked bacon, green onions and Swiss cheese. Garnished with fresh fruit",
                35);
            AddItem("Quatre Fromages Quiche",
                "Swiss, brie, feta and parmesan cheeses with sundried tomatoes and hickory smoked bacon. Garnished with fresh fruit",
                40);
            AddItem(new FishAndChips());
            AddItem(new HouseBlend());
            
        }
        public override void AddItem(string name, string description, double price)
        {
            Item item = new Item(name, description, price);
            AddItem(item);
        }
        public override void AddItem(Item i)
        {
            Items.Add(i);
        }
        public override double Price
        {
            get
            {
                double p = 0;
                foreach (var i in this.Items)
                {
                    p += i.Price;
                }
                return p;
            }
        }
        public override Iterator CreateIterator()
        {
            return new BreakfastMenuIterator(Items);
        }
       
        

      
    }
}
